<?php /* Smarty version 2.6.19, created on 2008-07-03 12:00:36
         compiled from admin/chat/rooms.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'debug', 'admin/chat/rooms.tpl', 2, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/inc/header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php echo smarty_function_debug(array(), $this);?>

<div id="content">

<table id="mytable" cellspacing="0" summary="List of registed users">
<caption>List of rooms</caption>
  <tr>
    <th scope="col">
    <a href = "/admin/chat/rooms/room_name/1/">^</a>
			Room name
	<a href = "/admin/chat/rooms/room_name/0/">^</div></a>
	</th>
    <th scope="col">
	<a href = "/admin/chat/rooms/online/1/">^</a>
		Online users
	<a href = "/admin/chat/rooms/online/0/">^</a>
	</th>
	 <th scope="col">
	<a href = "/admin/chat/rooms/room_status/1/">^</a>
		Status
	<a href = "/admin/chat/rooms/room_status/0/">^</a>
	</th>
  </tr>
  <?php $_from = $this->_tpl_vars['rooms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['i']):
        $this->_foreach['foo']['iteration']++;
?>
  <tr>
    <th <?php if (! ($this->_foreach['foo']['iteration']-1)%2): ?>class="specalt"<?php else: ?> class="spec"<?php endif; ?>>
    		<?php echo $this->_tpl_vars['i']['room_name']; ?>
<?php if ($this->_tpl_vars['i']['online'] < 10): ?><b><div id = "offline">(low activity)</div></b><?php endif; ?>
    	<a href="/admin/chat/delete/<?php echo $this->_tpl_vars['i']['room_id']; ?>
/" 
		onclick="return confirm('Delete room \'<?php echo $this->_tpl_vars['i']['room_name']; ?>
\'\. \nAre you sure?');">
    		<img src="/media/admin/img/bg-action-delete.gif">
		</a>		
	</th>
    <td <?php if (($this->_foreach['foo']['iteration']-1)%2 == 0): ?> class="alt"<?php endif; ?>><?php echo $this->_tpl_vars['i']['online']; ?>
</td>
	<td <?php if (($this->_foreach['foo']['iteration']-1)%2 == 0): ?> class="alt"<?php endif; ?>><?php echo $this->_tpl_vars['i']['room_status']; ?>
</td>
	</tr>
  <?php endforeach; else: ?>
  No rooms
  <?php endif; unset($_from); ?>
</table>

<div class="side-col last">

<div class="action add" id="add_flow">
			<a href="/admin/chat/add/">add room</a>
</div>
</div>


<!-- content-->
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/inc/pager.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>